package com.two.service.shopcar.orderFeign;

import com.two.common.util.CommonResult;
import com.two.service.shopcar.entity.Shopcar;
import com.two.service.shopcar.vo.RestautantVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "two-orderSystem-service-order")
public interface OrdersFeign {

    @PostMapping("/order/shopcar/payMoney")
     CommonResult payMoney(@RequestParam String totalPrice, @RequestBody Shopcar[] shopcar);

    @PostMapping("/order/shopPay")
    CommonResult shopPay(@RequestParam String totalPrice, @RequestBody RestautantVo[] restautantVo);
}
